create_connectivity_matrix Function

public function create_connectivity_matrix(gdof, e, nodes) result(rst)

Creates a connectivity matrix for the element, stored in CSR format. The matrix contains exactly one non-zero (unity) entry per row; therefore, it is well-suited to a sparse representation.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: gdof

The number of global degrees of freedom.

class(element), intent(in) :: e

The element.

class(node), intent(in), dimension(:) :: nodes

The global node list.

Return Value type(csr_matrix)

The resulting matrix.


Contents